package star.cloud.asme.base.file.easyExcel;

import com.alibaba.excel.read.listener.ReadListener;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface EasyExcelService<T> {

    void exportData(HttpServletResponse response, Class<T> clazz, List<T> list, String fileName);

    void importData(MultipartFile file, Class<T> clazz, ReadListener<T> readListener) throws IOException;

}